<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
</head>
<body>

<script type="text/javascript" charset="utf-8">
	function mainFunction(){
        window.log.onStart();
        try {
            ##CODE##
        } catch (e) {
            window.log.onError(e);
        }
        window.log.onFinish();
	}
</script>
</body>
</html>